﻿

namespace Chain.BLL
{
    using Chain.IDAL;
    using Chain.Model;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Data;
    using System.Runtime.InteropServices;
    public class Activity
    {
        private readonly Chain.IDAL.Activity dal = new Chain.IDAL.Activity();
        public int Add(Chain.Model.Activity model)
        {
            return this.dal.Add(model);
        }
        public bool Delete(int ID)
        {
            return this.dal.Delete(ID);
        }
        public bool Exists(int ID)
        {
            return this.dal.Exists(ID);
        }
        public bool Update(Chain.Model.Activity model)
        {
            return this.dal.Update(model);
        }
        public DataSet GetActivityInfo(int PageSize, int PageIndex, out int resCount, params string[] strWhere)
        {
            return this.dal.GetActivityInfo(PageSize, PageIndex, out resCount, strWhere); 
        }

        public DataSet GetAwardsList()
        {
            return this.dal.GetAwardsList();
        }

        public bool IsCovered(int ActivityID)
        {
            return this.dal.IsCovered(ActivityID);
        }


        public DataTable ActivityShow()
        {
            return this.dal.ActivityShow();
        }
    }
}
